package com.qianfeng.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@EnableAutoConfiguration
@ComponentScan("com.qianfeng")//扫描的是service和controller
@EntityScan("com.qianfeng.pojo") //扫描的是实体类（因为这里在数据库中建立实体类的表）
@EnableJpaRepositories("com.qianfeng.dao") //扫描dao
public class SpringApplications {

	public static void main(String[] args) {
		SpringApplication.run(SpringApplications.class, args);
	}
}
